//
//  WBTempViewController.swift
//  WB123
//
//  Created by xuyunde mac pro on 2017/6/29.
//  Copyright © 2017年 NSObjiect. All rights reserved.
//

import UIKit

class WBTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setupUI()
    }
    private func setupUI(){
        view.backgroundColor = UIColor.white
        setupNav()
    }
    @objc private func pushClick(){
        let tempVC = WBTempViewController()
        navigationController?.pushViewController(tempVC, animated: true)
    }
    private func setupNav(){
        // 给title
        navigationItem.title = "第\(navigationController?.childViewControllers.count ?? 0)个控制器"
        // 右侧按钮
        navigationItem.rightBarButtonItem = UIBarButtonItem(imgName: nil, title: "PHSH", target: self, action: #selector(pushClick))
    }
}
